/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package me.tomato3017.plugins.epicmusic;

import org.getspout.spoutapi.event.sound.AudioListener;
import org.getspout.spoutapi.event.sound.BackgroundMusicEvent;

/**
 *
 * @author Anthony Kirksey <Anthony.Kirksey@gmail.com>
 */
public class EpicMusicAudioListener extends AudioListener{
    EpicMusic plugin;

    public EpicMusicAudioListener(EpicMusic plugin) {
        this.plugin = plugin;
    }

    @Override
    public void onBackgroundMusicChange(BackgroundMusicEvent event) {
        if(event.getMusicUrl() == null){
            event.setCancelled(true);
        }
    }
    
    
}
